package com.nbsaas.boot.ai.rest.convert;

import com.nbsaas.boot.ai.data.entity.AiAgentConfig;
import com.nbsaas.boot.ai.api.domain.request.AiAgentConfigRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
 * 智能体配置请求对象转换成实体对象
 */

public class AiAgentConfigEntityConvert implements Converter<AiAgentConfig, AiAgentConfigRequest> {

    @Override
    public AiAgentConfig convert(AiAgentConfigRequest source) {
        AiAgentConfig result = new AiAgentConfig();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

